from .db import db

class Member(db.Model):
    __tablename__ = 'member'
    mem_id = db.Column(db.Integer, primary_key=True)
    mem_nickname = db.Column(db.String(20))
    mem_avatar = db.Column(db.String(50))
    mem_tel = db.Column(db.String(11))
    mem_password = db.Column(db.String(100))
    mem_email = db.Column(db.String(100))
    mem_create_time = db.Column(db.DateTime)
    # 关联模型
    # question= db.relationship('Question', backref='member', lazy='dynamic')
    # question= db.relationship('Question')